import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

let dafaultCity="长沙"
    dafaultCity=localStorage.city
    
const state={
	city:dafaultCity
}

const mutations={
	changeCity(state,CityName){
		state.city=CityName;
		localStorage.city=CityName
	}
}

export default new Vuex.Store({
	state,
	mutations
})
